package edu.kaist.cs408.pof.common.model;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;
import org.bson.types.ObjectId;

/**
 * Created with IntelliJ IDEA.
 * User: duyleekun
 * Date: 5/8/12
 * Time: 8:24 PM
 * To change this template use File | Settings | File Templates.
 */

@Entity("Dish")
public class DishVo implements Votable {
	@Id
	ObjectId mid;

	String name;
	int price;


	int countReview;// implements Votable
	int totalReviewScore;// implements Votable


	public DishVo(String name, int price) {
		this.name = name;
		this.price = price;
		countReview = 0;
		totalReviewScore = 0;
	}

	public DishVo() {
	}

	public String getName() {
		return name;
	}

	public int getPrice() {
		return price;
	}


	public ObjectId getMid() {
		return mid;
	}

	@Override
	public int getCountReview() {
		return countReview;
	}

	@Override
	public int getTotalReviewScore() {
		return totalReviewScore;
	}
}
